package org.jeecg.modules.htxincailiao.im.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Description: im_message
 * @Author: jeecg-boot
 * @Date:   2023-03-15 09:48:23
 * @Version: V1.0
 */
@Data
@TableName("im_message")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="im_message对象", description="im_message")
public class IMMessage implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**消息类型*/
	@Excel(name = "消息类型", width = 15, dicCode = "message_type")
	@Dict(dicCode = "message_type")
    @ApiModelProperty(value = "消息类型")
    private java.lang.Integer type;
	/**会话ID*/
	@Excel(name = "会话ID", width = 15)
    @ApiModelProperty(value = "会话ID")
    private java.lang.String conversationId;
	/**发送者ID*/

	@Excel(name = "发送者ID", width = 15)
    @ApiModelProperty(value = "发送者ID")
    private java.lang.String senderId;
	/**接受者ID*/
	@Excel(name = "接受者ID", width = 15)
    @ApiModelProperty(value = "接受者ID")
    private java.lang.String receiverId;
	/**消息内容*/
	@Excel(name = "消息内容", width = 15)
    @ApiModelProperty(value = "消息内容")
    private java.lang.String content;
	/**时间戳*/
	@Excel(name = "时间戳", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "时间戳")
    private java.lang.String timestamp;
	/**审批人*/
	@Excel(name = "审批人", width = 15)
    @ApiModelProperty(value = "审批人")
    private java.lang.String auditUsername;
	/**审核状态：0-未审核 1-审核中 2-已通过 3-已驳回*/
	@Excel(name = "审核状态：0-未审核 1-审核中 2-已通过 3-已驳回", width = 15)
    @ApiModelProperty(value = "审核状态：0-未审核 1-审核中 2-已通过 3-已驳回")
    private java.lang.Integer auditStatus=2;
	/**审批意见*/
	@Excel(name = "审批意见", width = 15)
    @ApiModelProperty(value = "审批意见")
    private java.lang.String auditComments;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
}
